package com.ymttest.common.enums;

import com.ymt.core.tool.Logger;

public enum MessageSupplyEnum {

	NULL(0), Webpower默认通道(1), Ctc三网通道(2), Webpower三网通道贝海国际速递(3), Webpower三网通道洋码头(4), WM梦网平台(5), 新三通_贝海国际速递(6), TeleSignSms(
			7), TeleSignVerifyCall(8), WM梦网平台通知通道(9);

	private int intValue;
	private static java.util.HashMap<Integer, MessageSupplyEnum> mappings;

	private synchronized static java.util.HashMap<Integer, MessageSupplyEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, MessageSupplyEnum>();
		}
		return mappings;
	}

	private MessageSupplyEnum(int value) {
		intValue = value;
		MessageSupplyEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static MessageSupplyEnum forValue(int value) {
		return getMappings().get(value);
	}

	public static void main(String[] args) {

		Logger.debug(MessageSupplyEnum.forValue(1));
	}

}
